package com.homework.util;

public class Constants {
	
	//	用户角色
	public static final int ROLE_STUDENT 	= 	1; //学生
	public static final int ROLE_TEACHER 	= 	2; //教师
	public static final int ROLE_ADMIN 		= 	3; //管理员
	
	// 结果集result
	public static final int RESULT_STUDENT 			 	= 1;	 //用户为学生
	public static final int RESULT_TEACHER 			 	= 2;	 //用户为教师
	public static final int RESULT_ADMIN   			 	= 3;	 //用户为管理员
	public static final int RESULT_UserVerifyMissing 	= 100;   //该用户还未通过审核
	public static final int RESULT_UserDeleted 		 	= 101;	 //该用户已删除
	public static final int RESULT_SystemAbnormal 	 	= 102;	 //系统异常
	public static final int RESULT_UsernameAndPwdWrong 	= 103;	 //用户名或密码输入错误
	public static final int RESULT_Online 			    = 104;	 //该用户已在线
	public static final int RESULT_classChooseSuccess   = 105;	 //提交选课成功
	public static final int RESULT_classChooseFail 	    = 106;	 //提交选课失败，你的部分选课已存在
	
	
	// message		
	public static final String MESSAGE_ERROR_UserVerifyMissing 		= "该用户还未通过审核";
	public static final String MESSAGE_ERROR_UserDeleted 			= "该用户不存在";
	public static final String MESSAGE_ERROR_SystemAbnormal 		= "系统异常";
	public static final String MESSAGE_ERROR_UsernameAndPwdWrong	= "用户名或密码输入错误";
	public static final String MESSAGE_ERROR_Online   				= "该用户已在线";
	public static final String MESSAGE_SUCCESS_classChooseSuccess	= "提交选课成功";
	public static final String MESSAGE_ERROR_classChooseFail   		= "提交选课失败，你的部分选课已存在";
	public static final String MESSAGE_ERROR_UserNeedLogin 			= "请登录后再使用此功能";
	public static final String MESSAGE_ERROR_OldPasswordError   	= "旧密码错误";
	public static final String MESSAGE_SUCCESS_ChangePasswordSuccess= "密码修改成功";
	public static final String MESSAGE_SUCCESS_ChangeUserInfoSuccess= "用户信息修改成功";
	public static final String MESSAGE_ERROR_ChangeUserInfoFail     = "用户信息修改失败";
	public static final String MESSAGE_ERROR_NotFoundUser 			= "用户未登录";
	public static final String MESSAGE_SUCCESS_RegisetSuccess	 	= "注册成功，请等待管理员审核";
	public static final String MESSAGE_ERROR_RegisetError 			= "注册成功，请等待管理员审核";
	public static final String MESSAGE_ERROR_UploadWrong 			= "作业上传失败(只支持txt格式文件，大小小于2M)";
	public static final String MESSAGE_ERROR_UploadWrong2 			= "资源上传失败(只支持ppt,doc,docx,txt,pptx,xls,xlsx,zip格式文件，大小小于20M)";
	
}
